package com.xbongbong.paas.pojo;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author 吴峰
 * @date 2023/04/06 16:39
 */
@Data
public class SaveConfigDTO  implements Serializable {

    @NotEmpty(message = "configAlias {javax.validation.constraints.NotEmpty.message}")
    private String corpid;

    private List<String> configAlias;

    @NotEmpty(message = "configAlias {javax.validation.constraints.NotEmpty.message}")
    private String userId;

    @NotNull(message = "configAlias {javax.validation.constraints.NotNull.message}")
    private Long appId;

    @NotNull(message = "configAlias {javax.validation.constraints.NotNull.message}")
    private Long formId;

    @NotNull(message = "configAlias {javax.validation.constraints.NotNull.message}")
    private Integer businessType;

    @NotEmpty(message = "xbbCode {javax.validation.constraints.NotEmpty.message}")
    private String xbbCode;
}
